package com.kayt.cyberBar.cuser.business.dao.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.kayt.cyberBar.common.dao.EntityDao;
import com.kayt.cyberBar.cuser.business.dao.IWorkExamDao;
import com.kayt.cyberBar.cuser.business.entity.po.BWorkExam;

@Repository("workExamDao")
public class WorkExamDaoImpl implements IWorkExamDao {
	@Autowired
	private EntityDao entityDao;
	@Override
	public Long saveWorkRequest(BWorkExam workExam) throws SQLException {
		return entityDao.save(workExam);
	}
	@Override
	public void update(BWorkExam entity) {
		if(entity != null){
			entityDao.update(entity);
		}
	}

}
